package com.ruoyi.back.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName Fileinfo
 * @Description TODO 文件基础信息
 * @Author luguanqing
 * @Date 2021/4/9 15:48
 * @Version 1.0
 */
@ApiModel("文件基础实体")
public class Fileinfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键id */
    @ApiModelProperty(value = "主键id")
    private String id;

    /** 文件名称 */
    @ApiModelProperty(value = "文件名称")
    private String fileName;

    /** 标识 */
    @ApiModelProperty(value = "标识")
    private String identifier;

    /** 文件大小 */
    @ApiModelProperty(value = "文件大小")
    private String totalSize;

    /** 类型 */
    @ApiModelProperty(value = "类型")
    private String type;

    /** 地址 */
    @ApiModelProperty(value = "地址")
    private String location;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(String totalSize) {
        this.totalSize = totalSize;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("fileName", getFileName())
                .append("identifier", getType())
                .append("totalSize", getTotalSize())
                .append("type", getType())
                .append("location", getLocation())
                .toString();
    }
}
